import request from '@/utils/request'
const url_ax = 'system/message/'

// 获取推送消息
export function getPushAppMessage(data) {
  return httpf('getPushAppMessage','get',data);
}

function httpf(url,mh,data) {
  if(mh == 'get'){
    return request({
      url: url_ax+url,
      method: 'post',
      data: data
    })
  }else {
    return request({
      url: url_ax+url,
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      },
      data: data
    })
  }
}
